
pkgname=gawk
pkgver=4.2.1
pkgrel=1
pkgdesc="The GNU awk utility interprets a special-purpose programming language that makes it possible to handle simple data-reformatting jobs with just a few lines of code."
arch=('x86_64')
url="http://www.gnu.org/software/gawk/gawk.html"
license=('GPL')
groups=('base')
provides=('awk')
depends=('sh' 'glibc' 'mpfr')
makedepends=('gzip')
source=("https://ftp.gnu.org/gnu/gawk/${pkgname}-${pkgver}.tar.xz")
md5sums=('95cf553f50ec9f386b5dfcd67f30180a')

build() {
  cd ${pkgname}-${pkgver}

  ./configure --prefix=/usr \
       --libexecdir=/usr/lib \
       --sysconfdir=/etc \
       --without-libsigsegv
  make
}

check() {
  cd ${pkgname}-${pkgver}
  
  make check
}


package() {
  cd ${pkgname}-${pkgver}
  
  make install DESTDIR=${pkgdir}
}

